package com.xiaoh.dormitoryrepairreportbackend.model.dto.workorder;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.Max;
import java.io.Serializable;

/**
 * 工单状态更新请求
 */
@Data
@Schema(description = "工单状态更新请求")
public class WorkOrderStatusUpdateRequest implements Serializable {

    /**
     * 工单ID
     */
    @Schema(description = "工单ID", required = true)
    @NotNull(message = "工单ID不能为空")
    private Long workOrderId;

    /**
     * 新状态（0:已取消, 1:待处理, 2:处理中, 3:已完成, 4:已评价）
     */
    @Schema(description = "新状态（0:已取消, 1:待处理, 2:处理中, 3:已完成, 4:已评价）", required = true)
    @NotNull(message = "状态不能为空")
    @Min(value = 0, message = "状态值不能小于0")
    @Max(value = 4, message = "状态值不能大于4")
    private Integer status;

    private static final long serialVersionUID = 1L;
}
